
cmake_minimum_required(VERSION 3.5)
project(webrtc_sw LANGUAGES CXX C)

include (../predefined.cmake)

include_directories(./ ../
)

set(SYSTEM_WRAPPERS_SOURCE_LIST
    ./source/field_trial.cc
    ./source/metrics.cc
    ./source/cpu_features2.cc
)

IF(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
    set(SYSTEM_WRAPPERS_SOURCE_LIST
        ${SYSTEM_WRAPPERS_SOURCE_LIST}
    )
ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
    set(SYSTEM_WRAPPERS_SOURCE_LIST
        ${SYSTEM_WRAPPERS_SOURCE_LIST}
        ./source/cpu_features_linux.cc
    )
# ELSEIF(${CMAKE_SYSTEM_NAME} MATCHES "Android")
#     set(SYSTEM_WRAPPERS_SOURCE_LIST
#         ${SYSTEM_WRAPPERS_SOURCE_LIST}
#         ./source/cpu_features_android.cc
#     )
ENDIF()

add_library(webrtc_sw ${SYSTEM_WRAPPERS_SOURCE_LIST})
